<div class="form">
    <?php $form = $this->beginWidget('CActiveForm', array(
	'id'=>'tag-form',
	'enableAjaxValidation'=>true,
	    'clientOptions' => array(
		    'validateOnSubmit' => true,
		    'validateOnChange' => false,
	    ),
	'focus'=>array($model,'name'),
    )); ?>
	<?php echo $form->errorSummary($model); ?>
	<div class="row">
	    <?php echo $form->labelEx($model, 'name'); ?>
	    <?php echo $form->textField($model, 'name'); ?>
	    <?php echo $form->error($model, 'name'); ?>
	</div>
	<div class="row submit">
	    <?php echo CHtml::submitButton('Сохранить'); ?>
	</div>
    <?php $this->endWidget(); ?>
</div>